package com.jzh.selfwallpaper.view.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.jzh.selfwallpaper.R;
import com.jzh.selfwallpaper.util.PermissionUtil;

public class MainActivity extends BaseActivity {


    @Override
    public void widgetClick(View v) {

    }

    @Override
    protected void init() {

        PermissionUtil.requestPermissions(this);
    }

    @Override
    public View bindView() {
        return null;
    }

    @Override
    public int bindLayout() {
        return R.layout.activity_main;
    }

    @Override
    public void initView(View view) {
    }

    @Override
    public void setListener() {

    }

    @Override
    public void doBusiness(Context mContext) {

        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                startActivity(new Intent(MainActivity.this, IndexActivity.class));
                finish();
            }
        },3000);
    }
}
